package com.shrio.test.controls;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by joychen on 2018/2/25.
 */
@Controller
public class PageControl {

    @RequestMapping("/home")
    public String home() {
        return "home";
    }

    @RequestMapping("/login")
    public String login() {
        return "login";
    }

    @RequestMapping("/mytest")
    public String mytest() {
        return "mytest";
    }

    @RequestMapping("/admin")
    public String admin(){
        return "admin/admin";
    }


    @RequestMapping("/user")
    public String user(){
        return "admin/user";
    }

}
